{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\swhitt\OneDrive - High Point University\Research\Ukraine War\Ukraine Jan 2023\C&C\CC Revision 1\CC Revision 2\Final Version\CC Replication Instructions\CC Ukraine Jan 2023 replication log file.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}27 Jan 2025, 17:04:22

{com}. do "C:\Users\swhitt\OneDrive - High Point University\Research\Ukraine War\Ukraine Jan 2023\C&C\CC Revision 1\CC Revision 2\Final Version\CC Replication Instructions\CC Ukraine Jan 2023 replication do file.do"
{txt}
{com}. *Replication Instructions for
. 
. *War-Related Victimization and Social Distance Toward Others: Evidence Following Russia's 2022 Invasion of Ukraine
. 
. *Sam Whitt and Douglas Page
. 
. *Below are instructions for replicating all manuscript and online appendix tables and figures in STATA. There are multiple replication datasets and do files, which are noted for each table and figure. Please contact Sam Whitt (swhitt@highpoint.edu) for questions regarding data replication. 
. 
. *Note: You may need to install STATA packages for the cibar, catcibar, and iebaltab commands. Use findit with the command name to identify and download the appropriate packets to install. 
. 
. *Note: In addition, some graphs require additional formatting using filename.grec files with the graph play command. To format a graph, simply run the command to generate the graph in the do file in STATA, then open the "Graph Editor" in STATA and click on the GREEN "Play Recording" button, then select "Browse" to select the grec file from the folder "grec files for STATA graph formatting" among Replication files. The name of the grec file is indicated in the note below the graph command in the do file for the specific graph you wish to format. This should automatically format the graph, which you may then save to a location of your choosing.
. 
. *Manuscript Replication
. 
. *"Stata user generated commands to install for replication purposes"
. 
. *"cibar"
. 
. ssc install cibar, replace
{txt}checking {hilite:cibar} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. *"iebaltab from ietoolkit"
. 
. ssc install ietoolkit, replace
{txt}checking {hilite:ietoolkit} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. *"catcibar"
. 
. net install catcibar, from("https://aarondwolf.github.io/catcibar") replace
checking {hilite:catcibar} consistency and verifying not already installed...
all files already exist and are up to date.
{txt}
{com}. 
. 
. *In Text Replication up to robustness checks
. 
. *Use "CC Ukraine July 2022 replication data.dta"
. 
. *Figure 1
. 
. *Figure 1 (use Data_OMN_Nov_2021_KIIS_ukr.dta and do file)
. 
. *Figure 2
. 
. *Figure 2 (use Data_OMN_Kiis_prepostwar.dta and do file)
. 
. *Table 2
. 
. *Use CC Ukraine July 2022 replication data.dta and do file
. 
. *Table 3
. 
. *Use CC Ukraine July 2022 replication data.dta and do file
. 
. *Table 4
. 
. *Use CC Ukraine July 2022 replication data.dta and do file
. 
. *Robustness Check – Contextualizing Identity
. 
. *The sample, 94% of which identified as Ukrainian, are not strongly affected by randomized variation in Ukrainian identity markers. 
. 
. tab nationality

      {txt}D4. With what nationality do you {c |}
                    associate yourself {c |}      Freq.     Percent        Cum.
{hline 39}{c +}{hline 35}
                             Ukrainian {c |}{res}      1,876       94.46       94.46
{txt}                               Russian {c |}{res}         45        2.27       96.73
{txt}Ukrainian and Russian (only voluntary) {c |}{res}         24        1.21       97.94
{txt}                               Belarus {c |}{res}          4        0.20       98.14
{txt}                             Moldavian {c |}{res}          3        0.15       98.29
{txt}                             Bulgarian {c |}{res}          3        0.15       98.44
{txt}                             Hungarian {c |}{res}          1        0.05       98.49
{txt}                              Romanian {c |}{res}          2        0.10       98.59
{txt}                                  Pole {c |}{res}          2        0.10       98.69
{txt}                                   Jew {c |}{res}          4        0.20       98.89
{txt}                                 Other {c |}{res}         22        1.11      100.00
{txt}{hline 39}{c +}{hline 35}
                                 Total {c |}{res}      1,986      100.00
{txt}
{com}. 
. *They feel very close to Ukrainians regardless of whether the Ukrainian identity is framed as "ethnic Ukrainian in Ukraine", "Ukrainian-speaker in Ukraine" "Ukrainian citizen of Ukrainian ethnic origin" or "citizen of Ukraine" (mean=9.3).
. 
. sum ethnicuk

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}ethnicuk {c |}{res}      1,947    9.251156    1.668305          0         10
{txt}
{com}. 
. *In contrast, for Russian identity, we find that framing matters. Respondents are most distant toward "citizens of Russia" (mean =1.48).
. 
. sum citizenru

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}citizenru {c |}{res}      1,871    1.476216    2.618189          0         10
{txt}
{com}. 
. *However, for people who identify as Russian within Ukraine, Figure 4 shows that respondents feel closest to people who identify as "Russian-speakers in Ukraine" (mean=6.5), followed by "Ukrainian citizens of Russian ethnic origin" (mean=5.4), and most distant toward people defined as "ethnic Russians in Ukraine" (mean=3.9).
. 
. sum ethnicru if identitytxt==2

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}ethnicru {c |}{res}        633    6.507109    3.369685          0         10
{txt}
{com}. sum ethnicru if identitytxt==3

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}ethnicru {c |}{res}        612    5.419935    3.849687          0         10
{txt}
{com}. sum ethnicru if identitytxt==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}ethnicru {c |}{res}        597    3.917923    3.899531          0         10
{txt}
{com}. 
. *Figure 4
. 
. *Use "CC Ukraine Jan 2023 Figure 4 data.dta and do file" 
. 
. *Sample Demographics (July 2022)
. *Manuscript Table 3 (Tobit Regression)
. *Robustness Check: Binary Victimization Measurement
. *Robustness Check – Ordinal Measure of Victimization
. *Moderated Effects of Victimization Experience on Social Distance (OLS Regression)
. *Moderated Effects of Victimization Experience on Social Distance (Interflex Estimates)
. *Balance Tests on Victimization Treatment 
. *Victimization Treatment Effects Sensitivity Analysis
. *Intercorrelation among Victimization Items 
. *Factor Analysis of Victimization-Related Items
. *Correlates of Victimization (Logit Regression)
. 
. *Use CC Ukraine July 2022 replication data.dta
. 
. *Changes in Social Distance Over Time (July 2022-January 2023)
. 
. *Use "CC Ukraine 2022-2023 combined data.dta"
. 
. *Sample Demographics (Follow-up January 3-11, 2023 survey)
. 
. sum i.identitytxt female age education i.nationality i.language i.occupation income urban_rural i.region4

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 1}identitytxt {c |}
Ethnicit..)  {c |}{res}      2,002    .3326673    .4712862          0          1
{txt}Language..)  {c |}{res}      2,002    .3381618    .4732021          0          1
{txt}Citizens..)  {c |}{res}      2,002    .3291708    .4700295          0          1
{txt}{space 12} {c |}
{space 6}female {c |}{res}      2,002    .5484515    .4977712          0          1
{txt}{space 9}age {c |}{res}      2,002    48.84665    16.46674         18         90
{txt}{hline 13}{c +}{hline 57}
{space 3}education {c |}{res}      1,994    6.553661    1.461456          1          8
{txt}{space 12} {c |}
{space 1}nationality {c |}
{space 2}Ukrainian  {c |}{res}      1,986    .9446123    .2287931          0          1
{txt}{space 4}Russian  {c |}{res}      1,986    .0226586    .1488501          0          1
{txt}Ukrainia..)  {c |}{res}      1,986    .0120846    .1092912          0          1
{txt}{space 4}Belarus  {c |}{res}      1,986    .0020141    .0448448          0          1
{txt}{hline 13}{c +}{hline 57}
{space 2}Moldavian  {c |}{res}      1,986    .0015106    .0388465          0          1
{txt}{space 2}Bulgarian  {c |}{res}      1,986    .0015106    .0388465          0          1
{txt}{space 2}Hungarian  {c |}{res}      1,986    .0005035    .0224394          0          1
{txt}{space 3}Romanian  {c |}{res}      1,986     .001007     .031726          0          1
{txt}{space 7}Pole  {c |}{res}      1,986     .001007     .031726          0          1
{txt}{hline 13}{c +}{hline 57}
{space 8}Jew  {c |}{res}      1,986    .0020141    .0448448          0          1
{txt}{space 6}Other  {c |}{res}      1,986    .0110775    .1046917          0          1
{txt}{space 12} {c |}
{space 4}language {c |}
{space 2}Ukrainian  {c |}{res}      2,002    .8121878    .3906597          0          1
{txt}{space 4}Russian  {c |}{res}      2,002    .0949051     .293157          0          1
{txt}Equally, ..  {c |}{res}      2,002    .0639361    .2447001          0          1
{txt}{hline 13}{c +}{hline 57}
Hard to s..  {c |}{res}      2,002    .0054945    .0739395          0          1
{txt}Equally, ..  {c |}{res}      2,002    .0174825    .1310933          0          1
{txt}Hard to s..  {c |}{res}      2,002     .005994    .0772079          0          1
{txt}{space 12} {c |}
{space 2}occupation {c |}
Worker, f..  {c |}{res}      1,993    .1329654    .3396225          0          1
{txt}Servant ..)  {c |}{res}      1,993    .0797792    .2710191          0          1
{txt}{hline 13}{c +}{hline 57}
Professi..)  {c |}{res}      1,993    .1806322    .3848097          0          1
{txt}Self empl..  {c |}{res}      1,993     .039137    .1939695          0          1
{txt}Entrepren..  {c |}{res}      1,993     .041144     .198673          0          1
{txt}Military ..  {c |}{res}      1,993    .0376317    .1903516          0          1
{txt}Householder  {c |}{res}      1,993    .0747617    .2630724          0          1
{txt}{hline 13}{c +}{hline 57}
{space 2}Pensioner  {c |}{res}      1,993    .2799799    .4491017          0          1
{txt}{space 4}Student  {c |}{res}      1,993    .0316106    .1750051          0          1
{txt}{space 1}Unemployed  {c |}{res}      1,993    .1023583    .3031949          0          1
{txt}{space 12} {c |}
{space 6}income {c |}{res}      1,927     2.60768    .8456738          1          5
{txt}{space 1}urban_rural {c |}{res}      2,002    1.142358    .3495039          1          2
{txt}{hline 13}{c +}{hline 57}
{space 12} {c |}
{space 5}region4 {c |}
{space 7}West  {c |}{res}      2,002    .1448551    .3520427          0          1
{txt}{space 4}Central  {c |}{res}      2,002    .3676324     .482281          0          1
{txt}{space 6}South  {c |}{res}      2,002    .2787213    .4484821          0          1
{txt}{space 7}East  {c |}{res}      2,002    .2087912    .4065464          0          1
{txt}
{com}. 
. *Balance Tests (Follow-up January 3-11, 2023 survey Identity Treatments)
. 
. iebaltab female age education russpeaker russian occupation income urban_rural region4, groupvar(identitytxt) savexlsx(identitybalance)

{res}{phang}Balance table saved in Excel format to: {browse "identitybalance.xlsx":identitybalance.xlsx}{p_end}
{txt}
{com}. 
. *Power Calculations 
. 
. *Effect sizes (Identity Priming)
. 
. power oneway, ngroups(3) n1(666) n2(677) n3(659) power(0.80 0.90 0.95 0.99)
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated{txt} between-group variance{txt} for one-way ANOVA{p_end}{txt}F test for group effect
{txt}{txt}{bind:H0: delta = 0}  {txt}versus  {bind:Ha: delta != 0}

  {txt}{c TLC}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 1}{c TRC}
  {txt}{c |}{txt}{txt}{ralign 8:alpha}{txt}{txt}{ralign 8:power}{txt}{txt}{ralign 8:N}{txt}{txt}{ralign 8:N_avg}{txt}{txt}{ralign 8:N1}{txt}{txt}{ralign 8:N2}{txt}{txt}{ralign 8:N3}{txt}{txt}{ralign 8:delta}{txt}{txt}{ralign 8:N_g}{txt}{txt}{ralign 8:Var_m}{txt}{txt}{ralign 8:Var_e}{txt}{txt} {c |}
  {txt}{c LT}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 1}{c RT}
  {txt}{c |}{res}{ralign 8:.05}{res}{ralign 8:.8}{res}{ralign 8:2,002}{res}{ralign 8:667.3}{res}{ralign 8:666}{res}{ralign 8:677}{res}{ralign 8:659}{res}{ralign 8:.06942}{res}{ralign 8:3}{res}{ralign 8:.00482}{res}{ralign 8:1}{txt} {c |}
  {txt}{c |}{res}{ralign 8:.05}{res}{ralign 8:.9}{res}{ralign 8:2,002}{res}{ralign 8:667.3}{res}{ralign 8:666}{res}{ralign 8:677}{res}{ralign 8:659}{res}{ralign 8:.07956}{res}{ralign 8:3}{res}{ralign 8:.00633}{res}{ralign 8:1}{txt} {c |}
  {txt}{c |}{res}{ralign 8:.05}{res}{ralign 8:.95}{res}{ralign 8:2,002}{res}{ralign 8:667.3}{res}{ralign 8:666}{res}{ralign 8:677}{res}{ralign 8:659}{res}{ralign 8:.08789}{res}{ralign 8:3}{res}{ralign 8:.00773}{res}{ralign 8:1}{txt} {c |}
  {txt}{c |}{res}{ralign 8:.05}{res}{ralign 8:.99}{res}{ralign 8:2,002}{res}{ralign 8:667.3}{res}{ralign 8:666}{res}{ralign 8:677}{res}{ralign 8:659}{res}{ralign 8:.1035}{res}{ralign 8:3}{res}{ralign 8:.0107}{res}{ralign 8:1}{txt} {c |}
  {txt}{c BLC}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 8}{txt}{txt}{hline 1}{c BRC}

{com}. esize twosample ethnicru if identitytxt~=3, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                     Ethnicity (Treatment 1) =        597
                      Language (Treatment 2) =        633
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2}-.7120003{col 34}{space 3}-.8271719{col 46}{space 3}-.5965552
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2}-.7115653{col 34}{space 3}-.8266666{col 46}{space 3}-.5961908
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. esize twosample ethnicru if identitytxt~=2, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                     Ethnicity (Treatment 1) =        597
                   Citizenship (Treatment 3) =        612
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2} -.387678{col 34}{space 3}-.5013999{col 46}{space 3}-.2737983
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2}-.3874371{col 34}{space 3}-.5010883{col 46}{space 3}-.2736282
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. esize twosample ethnicru if identitytxt~=1, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                      Language (Treatment 2) =        633
                   Citizenship (Treatment 3) =        612
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2} .3008557{col 34}{space 3} .1890578{col 46}{space 3} .4125338
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2} .3006741{col 34}{space 3} .1889437{col 46}{space 3} .4122849
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. esize twosample ethnicuk if identitytxt~=3, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                     Ethnicity (Treatment 1) =        642
                      Language (Treatment 2) =        659
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2}-.1835651{col 34}{space 3}-.2924456{col 46}{space 3}-.0746143
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2}-.1834591{col 34}{space 3}-.2922767{col 46}{space 3}-.0745712
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. esize twosample ethnicuk if identitytxt~=2, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                     Ethnicity (Treatment 1) =        642
                   Citizenship (Treatment 3) =        646
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2}-.1139973{col 34}{space 3} -.223289{col 46}{space 3}-.0046613
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2}-.1139308{col 34}{space 3}-.2231588{col 46}{space 3}-.0046586
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. esize twosample ethnicuk if identitytxt~=1, by(identitytxt)

{txt}Effect size based on mean comparison

                               Obs per group:
                      Language (Treatment 2) =        659
                   Citizenship (Treatment 3) =        646
{res}{col 1}{text}{hline 20}{c TT}{hline 12}{hline 12}{hline 12}
{col 1}{text}        Effect size{col 21}{c |}   Estimate{col 34}    [95% conf. interval]
{res}{col 1}{text}{hline 20}{c +}{hline 12}{hline 12}{hline 12}
{col 1}{text}          Cohen's {it:d}{col 21}{c |}{result}{space 2} .0699087{col 34}{space 3} -.038654{col 46}{space 3} .1784446
{col 1}{text}         Hedges's {it:g}{col 21}{c |}{result}{space 2} .0698685{col 34}{space 3}-.0386318{col 46}{space 3} .1783419
{col 1}{text}{hline 20}{c BT}{hline 12}{hline 12}{hline 12}
{res}{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\swhitt\OneDrive - High Point University\Research\Ukraine War\Ukraine Jan 2023\C&C\CC Revision 1\CC Revision 2\Final Version\CC Replication Instructions\CC Ukraine Jan 2023 replication log file.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}27 Jan 2025, 17:04:37
{txt}{.-}
{smcl}
{txt}{sf}{ul off}